import { NgModule, InjectionToken } from '@angular/core';
// import { isPlatformBrowser } from '@angular/common';
import { httpInterceptorProviders } from './index';
import { environment } from '../../environments/environment';

export const API_CONFIG = new InjectionToken('ApiConfigToken');
// export const WINDOW = new InjectionToken('WindowToken');

@NgModule({
  providers: [
    {
      provide: API_CONFIG, useValue: environment.production ? '/' : '/api'
    },
    httpInterceptorProviders
  ]
})
export class ServicesModule { }
